package org.zs.asp06;


import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.junit.jupiter.api.Order;
import org.springframework.stereotype.Component;

@Aspect
@Component
@Order(100)
public class ApsLog {

    @Before(value = "org.zs.asp06.CustomPoint.pc1()")
    public void before() {
        System.out.println("ApsLog 开始执行方法");
    }

    @AfterReturning(value = "org.zs.asp06.CustomPoint.pc1()")
    public void afterReturning() {
        System.out.println("ApsLog 方法执行完毕");
    }
}
